function bool = comp4Neigh(I)

T_theta = 16;

sz = size(I);

tl = padarray(I, [1 1], 0, 'pre');      % top left
tl(:,end) = []; tl(end,:) = [];


br = padarray(I, [1 1], 0, 'post');     % bottom right
br(1,:) = []; br(:,1) = [];

tr = padarray(I, [1 1]);                % top right
tr(:,1:2) = []; tr(end-1:end,:) = [];

bl = padarray(I, [1 1]);                % bottom left
bl(:,end-1:end) = []; bl(1:2,:) = [];

bool = abs(tl-I)>T_theta | abs(br-I)>T_theta | abs(tr-I)>T_theta | abs(bl-I)>T_theta; 
% cp = blk(5,:);  % central pixel
% bool = abs(blk(1,:)-cp)>T_theta | abs(blk(3,:)-cp)>T_theta...
%         | abs(blk(7,:)-cp)>T_theta | abs(blk(9,:)-cp)>T_theta;

end

